﻿@model SienSchoofsProject.Models.FilmReview

@{
    ViewBag.Title = Resources.EditReview;
}
<hgroup class="title">
    <h1>@ViewBag.Title</h1>
</hgroup>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true) // true = enkel de foutmeldingen die niet bij een bep veld horen; false = ALLE foutmeldingen 

    <fieldset>
        <legend>@Resources.EditReview</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.Rating)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Rating)
            @Html.ValidationMessageFor(model => model.Rating)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Body)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Body)
            @Html.ValidationMessageFor(model => model.Body)
        </div>
        @Html.HiddenFor(model => model.ReviewerName)

       @Html.HiddenFor(model => model.FilmId)

        <p>
            <input type="submit" value="@Resources.Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink(Resources.BackToList, "Index", new { id = Model.FilmId })
</div>

